package cn.zcy.springboot_web.config;

import org.springframework.boot.web.servlet.filter.OrderedHiddenHttpMethodFilter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.filter.HiddenHttpMethodFilter;

/**
 * 定制SpringMVC
 */
@Configuration
public class MyWebMvcAutoConfiguration {
    @Bean
    public HiddenHttpMethodFilter hiddenHttpMethodFilter() {
        //自己定义一个自己想用的类
        return new OrderedHiddenHttpMethodFilter();
    }
}
